package cn.mugutu.finance.domain.system;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 数据字典明细:存放具体domain的数据
 *
 * @author ganbo
 *         2016年6月30日 下午12:44:15
 */
@Entity
@Table(name = "sys_dictionarydetail")
@Data
public class DictionaryDetail extends BaseEntity {

    private String name;
    @ManyToOne
    @JoinColumn(name = "_dictionarytype_id")
    private DictionaryType types;

    public DictionaryDetail() {
    }

    public DictionaryDetail(String name, DictionaryType types) {
        super();
        this.name = name;
        this.types = types;
    }


}
